package com.springcloud.sc.ucpv5.client.commondata.idl.sj3;


/**
 * Generated from IDL struct "UserQueryRsp".
 *
 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
 * @version generated at 2014-10-29 11:48:54
 */

public final class UserQueryRspHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserQueryRspHelper.id(),"UserQueryRsp",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("Result", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("UserList", com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserSeqHelper.type(), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserQueryRsp s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserQueryRsp extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/client/idl/sj3/UserQueryRsp:1.0";
	}
	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserQueryRsp read (final org.omg.CORBA.portable.InputStream in)
	{
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserQueryRsp result = new com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserQueryRsp();
		result.Result=in.read_long();
		result.UserList = com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserSeqHelper.read(in);
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserQueryRsp s)
	{
		out.write_long(s.Result);
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.UserSeqHelper.write(out,s.UserList);
	}
}
